/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Topical Powder</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14535 (C-0-T19651-A14411-A14412-A14484-S14534-S14535-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getTopicalPowder()
 * @model extendedMetaData="name='TopicalPowder'"
 * @generated
 */
public enum TopicalPowder implements Enumerator {
	/**
	 * The '<em><b>TOPPWD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TOPPWD_VALUE
	 * @generated
	 * @ordered
	 */
	TOPPWD(0, "TOPPWD", "TOPPWD"),

	/**
	 * The '<em><b>RECPWD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RECPWD_VALUE
	 * @generated
	 * @ordered
	 */
	RECPWD(1, "RECPWD", "RECPWD"),

	/**
	 * The '<em><b>VAGPWD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VAGPWD_VALUE
	 * @generated
	 * @ordered
	 */
	VAGPWD(2, "VAGPWD", "VAGPWD");

	/**
	 * The '<em><b>TOPPWD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TOPPWD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TOPPWD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TOPPWD_VALUE = 0;

	/**
	 * The '<em><b>RECPWD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RECPWD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RECPWD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RECPWD_VALUE = 1;

	/**
	 * The '<em><b>VAGPWD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>VAGPWD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VAGPWD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int VAGPWD_VALUE = 2;

	/**
	 * An array of all the '<em><b>Topical Powder</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final TopicalPowder[] VALUES_ARRAY =
		new TopicalPowder[] {
			TOPPWD,
			RECPWD,
			VAGPWD,
		};

	/**
	 * A public read-only list of all the '<em><b>Topical Powder</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<TopicalPowder> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Topical Powder</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TopicalPowder get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TopicalPowder result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Topical Powder</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TopicalPowder getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TopicalPowder result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Topical Powder</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TopicalPowder get(int value) {
		switch (value) {
			case TOPPWD_VALUE: return TOPPWD;
			case RECPWD_VALUE: return RECPWD;
			case VAGPWD_VALUE: return VAGPWD;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private TopicalPowder(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //TopicalPowder
